!function (e, $, mui) {
    "use strict";
	
	var config = {
	};
	// 定义页面
	var p = function(config) {
		var t = this;
		t.config = config;
		t.userInfo = null;
		t.element = {
            username: $('.username'),
            avatar: $('.avatar')
		};
		t.init();
	};
	
	var pt = p.prototype;
	
	// 页面初始化
	pt.init = function () {
		var t = this;
		t.userInit();
		// 页面初始化
		t.element.username.text(t.userInfo.user_realname || t.userInfo.user_nickname);
		if(t.element.avatar) {
            t.element.avatar.attr('src', t.userInfo.avatar);
		}
	};
	
	// 用户信息初始化
	pt.userInit = function() {
		var t = this;
		t.userInfo = getLocalUserInfo();
	};
	
	// 页面初始化
	e.page = new p(config);

}(window, $, mui);